#ifndef _2_84_H
#define _2_84_H

/**
 * biased = pow(2, k-1) - 1;
 * MAX_EXP = (pow(2, k) - 1 - 1) - biased ;
 * A:
 *     E = 2 + biased;
 *     M = 5/4;
 *     f = 1/4;
 *     V = M * pow(2,E - biased);
 *     sign bit : 0;
 *     exponent bits: E;
 *     fraction bits: 0100...0;
 * B:  1. n <= MAX_EXP;
 *       E = n + biased;
 *       M = 2 - 1/pow(2,n);
 *       f = M - 1;
 *       V = M * pow(2, E - biased);
 *       sign bit: 0;
 *       exponent bits: E;
 *       fraction bits: 11...1;
 *     2. n > MAX_EXP;
 *       E = pow(2, k);
 *       M = 2 - 1/pow(2, MAX_EXP);
 *       f = M - 1;
 *       V = M * pow(2, MAX_EXP);
 *       sign bit: 0;
 *       exponent bits: 11..10;
 *       fraction bits: 11...100..0;
 *            number of 1's is: MAX_EXP;
 * C:
 *     E = pow(2, k-1) - 2 + biased;
 *     M = 1;
 *     f = 0;
 *     V = M * pow(2, E-biased);
 *     sign bit: 0;
 *     exponent bits: 11..10;
 *     fraction bits: 00..0;
 */


#endif // 2_84_H

